//
//  UIImage+JQFY.h
//  JQFY
//
//  Created by apple on 2017/8/6.
//  Copyright © 2017年 yannis. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIImage (JQFY)

-(UIImage *)scaleToWidth:(CGFloat)width;

-(UIImage *)imageCompressForSize:(UIImage *)sourceImage targetSize:(CGSize)size;

-(UIImage *)imageCompressForWidth:(UIImage *)sourceImage targetWidth:(CGFloat)defineWidth;

-(UIImage *)imageCompress:(UIImage *)sourceImage targetWidth:(CGFloat)defineWidth targetHeight:(CGFloat)defineHeight;

+(UIImage *)imgNamed:(NSString *)imgName;

// 做图片圆形裁剪优化
- (void)clipImageWithSize:(CGSize)size andClipColor:(UIColor *)color complation:(void(^)(UIImage *result))compltion andImage:(UIImage *)image;

@end
